﻿using System;
using System.Collections.Generic;
using System.IO;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Graphics;
using Android.OS;
using Android.Support.Design.Widget;
using Android.Support.V4.App;
using Android.Support.V4.View;
using Android.Support.V4.Widget;
using Android.Support.V7.App;
using Android.Support.V7.Widget;
using Android.Views;
using Android.Widget;
using mb;
using mb.Droid;
using mb.Droid;

namespace libmp
{
    public static class HomeNovelView
    {
        static ILog logger = ServiceLocator.Instance.Get<ILog>();
        static MyRecyclerAdapter adapter;
        public static MyFragment CreateFragment()
        {
            return new MyFragment()
            {
                Title = "小说",
                    MyOnCreateView = (f, container) => CreateView(),
            };
        }

        public static View CreateView()
        {

            var ctx = StartActivity.This;
            LinearLayout layout = new LinearLayout(ctx);
            layout.Orientation = Orientation.Vertical;
            // layout.SetBackgroundColor(Color.Blue);

            layout.AddView(new TextView(ctx) { Text = "小说" });

            return layout;
        }

    };

}